import request from '@/utils/request'

export function add(data) {
  return request({
    url: '/sale/add',
    method: 'post',
    data
  })
}

export function getAll(data) {
  return request({
    url: '/sale/getAll',
    method: 'post',
    data
  })
}
export function set(data) {
  return request({
    url: '/sale/set',
    method: 'post',
    data
  })
}
export function del(data) {
  return request({
    url: '/sale/del',
    method: 'post',
    data
  })
}
export function saleCount(data) {
  return request({
    url: '/sale/saleCount',
    method: 'post',
    data
  })
}